package com.woniuxy.oa.service;

import com.woniuxy.oa.entity.Salary;
import com.woniuxy.oa.entity.query.SalaryQuery;

import java.util.List;

/**
 * The interface Salary service.
 *
 * @Auther: 毓
 * @Date: 2019 /12/25 11:40
 * @Description:
 */
public interface SalaryService {
    /**
     * Add.
     *
     * @param salary the salary
     */
    void add(Salary salary);

    /**
     * Update.
     * 修改工资
     *
     * @param salary the salary
     */
    void update(Salary salary);


    /**
     * Gets by user id.
     * 查询自己的薪资
     *
     * @param employeeId the user id
     * @return the by user id
     */
    Salary getByEmployeeId(String employeeId);

    /**
     * Gets by query.
     * 根据员工姓名等条件模糊查询其工资
     *
     * @param salary the query
     * @return the by user name
     */
    List<Salary> getByQuery(SalaryQuery salary);

    Salary getById(String id);
}
